﻿using DXApplicationTangche.UC.抖音出入库.Service;
using DXApplicationTangche.UC.抖音出入库.抖音UC;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.抖音出入库
{
    public partial class Form抖音发货出库对照 : DevExpress.XtraEditors.XtraForm
    {
        private XtraUserControl抖音发货对账 xtraUserControl抖音发货出库对账 = new XtraUserControl抖音发货对账();
        public Form抖音发货出库对照()
        {
            InitializeComponent();
            List<DouyinStockOutCheckDTO> douyinOrderStockOut抖音发货出库对账 = 抖音订单Service.getDouyinOrderStockOutByDateStr(DateTime.Now.ToString("yyyy-MM-dd"));
            this.xtraUserControl抖音发货出库对账 = new XtraUserControl抖音发货对账(douyinOrderStockOut抖音发货出库对账);
            this.xtraUserControl抖音发货出库对账.Dock = DockStyle.Fill;
            this.panel抖音发货出库对照.Controls.Clear();
            this.panel抖音发货出库对照.Controls.Add(this.xtraUserControl抖音发货出库对账);
        }

        private void simpleButton刷新_Click(object sender, EventArgs e)
        {
            List<DouyinStockOutCheckDTO> douyinOrderStockOut一览显示 = 抖音订单Service.getDouyinOrderStockOutByDateStr(DateTime.Now.ToString("yyyy-MM-dd"));
            this.xtraUserControl抖音发货出库对账.gridControl抖音发货出库对账.DataSource = douyinOrderStockOut一览显示;
            this.xtraUserControl抖音发货出库对账.gridView抖音发货出库对账.RefreshData();
        }
    }
}
